projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a04d3fb
)
Trim trailing spaces when reading description. Provide default icon if none
author
robertl
<robertl>
Tue, 4 Oct 2005 16:08:18 +0000
(16:08 +0000)
committer
robertl
<robertl>
Tue, 4 Oct 2005 16:08:18 +0000
(16:08 +0000)
given.
pcx.c
patch
|
blob
|
history
diff --git
a/pcx.c
b/pcx.c
index a78d2f906b240683c27481065c55bcbcaf66dd57..4dfa90490cf812eefb2e8beacba71d21c24292d7 100644
(file)
--- a/
pcx.c
+++ b/
pcx.c
@@
-92,9
+92,11
@@
data_read(void)
date, time, &alt);
sscanf(&ibuf[60], "%40c",
desc);
+ symnum = 18;
sscanf(&ibuf[116], "%d",
&symnum);
desc[sizeof(desc)-1] = '\0';
+ rtrim(desc);
name[sizeof(name)-1] = '\0';
wpt_tmp = waypt_new();
wpt_tmp->altitude = alt;